//
//  DwonLoadManager.h
//  基于NSURLSession的断点下载队列
//
//  Created by 邹浩 on 15/9/17.
//  Copyright (c) 2015年 蓝鸥. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "VideoModel.h"

typedef void (^updataProgress)(VideoModel *);



@interface DwonLoadManager : NSObject

@property (nonatomic, copy)updataProgress updata;
+(instancetype)sharedInstance;

@property(nonatomic, strong)NSOperationQueue *downLoadQueue;

//  用来保存创建的下载管理类，方面以后的对应管理
@property(nonatomic, strong)NSMutableDictionary *httpOperationDict;

@property(nonatomic, strong)NSMutableArray *downVideoArray;
#pragma mark 开始下载
-(void)startAVideoWithVideoModel:(VideoModel *)model;

#pragma mark 暂停下载
-(void)downloadPausewithModel:(VideoModel *)model;

#pragma mark 断点继续下载
-(void)downloadResumeWithModel:(VideoModel *)model;

@end
